home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
lan
/
fsl222.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-07-22
|
11KB
|
265 lines
::
:: INSTALL.BAT for FSLOGIN v2
::
@echo off
cls
if exist fslogin.ovl goto m_main
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ │
echo │ This batch file should be run from the same drive and directory │
echo │ where the other files of the FSLOGIN package reside. Please change │
echo │ the current drive and directory first. │
echo │ │
echo ╘══════════════════════════════════════════════════════════════════════╛
echo\
pause
goto end
::
:m_main
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ INSTALL.BAT FSLOGIN v2 │
echo │ │
echo │ This batch file installs FSLOGIN on a server or on a workstation. │
echo │ │
echo │ When a server installation has to be done, make sure you're logged │
echo │ with a SUPERVISOR or EQUIVALENT account, because FSLOGIN files must │
echo │ be copied to the SYS:LOGIN and SYS:PUBLIC directories. │
echo │ │
echo │ F1 = Install on local disk (usefull for evaluation by Supervisor) │
echo │ │
echo │ F2 = Install on server (makes FSLOGIN available for users) │
echo │ │
echo │ F3 = Update on server (preserve FSLOGIN.INI, then install) │
echo │ │
echo │ F9 = Quit this procedure │
echo │ │
echo ╘══════════════════════════════════════════════════════════════════════╛
echo\
fk 1239
if errorlevel 9 goto end
if errorlevel 3 goto i_update
if errorlevel 2 goto i_server
if errorlevel 1 goto i_local
::
:i_local
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ LOCAL INSTALL FSLOGIN v2 │
echo │ │
echo │ The Local Installation option places all the FSLOGIN files in a │
echo │ directory on a local hard disk. If you want to have a look at this │
echo │ software without installing on a server, this is the option to use. │
echo │ │
echo │ Once installed, FSLOGIN should be started with a command line option │
echo │ that 'tells' FSLOGIN to read it's INI file (FSLOGIN.INI) from the │
echo │ local disk instead from the SYS:LOGIN directory. │
echo │ Since the INI file contains information that regular users should │
echo │ not be able to change, this is an exception to the rule. In a normal │
echo │ operational environment the INI file is always taken from SYS:LOGIN. │
echo │ │
echo │ Continue? 'Y'es or 'N'o. │
echo ╘══════════════════════════════════════════════════════════════════════╛
yesno
if NOT errorlevel 1 goto m_main
::
:i_loc_2
::
echo\
what S " Which directory to install: "
if exist %WHAT%\nul goto i_loc_3
echo\
echo Create this directory, 'Y'es or 'N'o?
yesno
if NOT errorlevel 1 goto i_loc_2
md %WHAT%
::
:i_loc_3
::
set L_RET=i_loc_4
goto l_menu
::
:i_loc_4
::
cls
copy fslogin.* %WHAT%
cd %WHAT%
set L_RET=i_loc_5
::goto 4_menu
::
:i_loc_5
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ LOCAL INSTALL FSLOGIN v2 │
echo │ │
echo │ The Local Installation is complete. Please start FSLOGIN with the │
echo │ following command line option to use the locally installed files: │
echo │ │
echo │ FSLOGIN !LI (actually this is case INsensitive...) │
echo │ │
echo │ For more information see the readme.txt file that is part of the │
echo │ archive file or the diskette. │
echo │ │
echo ╘══════════════════════════════════════════════════════════════════════╛
goto end
::
:i_server
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ SERVER INSTALL FSLOGIN v2 │
echo │ │
echo │ The Server Installation option places the FSLOGIN files in the SYS: │
echo │ LOGIN and the SYS:PUBLIC directories on the default server. │
echo │ │
echo │ Use the Server Installation when you do not have a previously │
echo │ installed version of FSLOGIN on the server, or when the previously │
echo │ used version can be replaced by this new version. The old files are │
echo │ NOT preserved in this case. │
echo │ │
echo │ │
echo │ Continue? 'Y'es or 'N'o. │
echo ╘══════════════════════════════════════════════════════════════════════╛
yesno
if NOT errorlevel 1 goto m_main
::
:i_ser_2
::
cls
if exist sys:login\fslogin.* flag sys:login\fslogin.* n >nul
if exist sys:public\fslogin.com flag sys:public\fslogin.com n >nul
set L_RET=i_ser_3
goto l_menu
::
:i_ser_3
::
cls
ncopy fslogin.* sys:login
ncopy fslogin.com sys:public
ser_ver
if errorlevel 4 goto nw_4
::
:: This is the Netware 2.x and 3.x syntax of the FLAG command
::
flag sys:login\fslogin.* s
flag sys:public\fslogin.com s
goto flag_done
::
:nw_4
::
:: This is the Netware 4.x syntax of the FLAG command
::
flag sys:login\fslogin.* sh
flag sys:public\fslogin.com sh
::
:flag_done
::
pause
set L_RET=i_ser_5
::goto 4_menu
::
:i_ser_5
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ INSTALL FSLOGIN v2 │
echo │ │
echo │ The Installation is complete. Please refer to the README.TXT, or │
echo │ better, the manual for more information. │
echo │ │
echo ╘══════════════════════════════════════════════════════════════════════╛
goto end
::
:i_update
::
cls
echo ╒══════════════════════════════════════════════════════════════════════╕
echo │ SERVER UPDATE FSLOGIN v2 │
echo │ │
echo │ The Server Update option preserves the current FSLOGIN.INI, which │
echo │ could contain valuable customization settings that you do not want │
echo │ to loose. To play it save, it's even better to compare the contents │
echo │ of the current INI file with the INI file that comes with this │
echo │ version and makes modifications BEFORE running th